Identifying Idioms of Source Code Identifier in Java Context
نویسندگان
چکیده
This paper presents an approach to identifying a domain word POS(Part of Speech) and idiom code identifiers written in Java programming language. To detect them, we extracted common identifiers from 14 Java API documents, and applied diverse filters. In addition, NLP (Natural Language Parser) has been used to detect common mistakes in the Java API documents. As a result, this paper identified 80 idioms from the documents.
منابع مشابه
Best Paper Award at ICST ’13 CHECK-THEN-ACT Misuse of Java Concurrent Collections
Concurrent collections provide thread-safe, highly-scalable operations, and are widely used in practice. However, programmers can misuse these concurrent collections when composing two operations where a check on the collection (such as non-emptiness) precedes an action (such as removing an entry). Unless the whole composition is atomic, the program contains an atomicity violation bug. In this ...
متن کاملJava Idioms - Exception Handling
Exceptions are a powerful feature for the propagation and handling of failure of operations. Naive use of exceptions however introduces subtle complexity into a system due to the nonlocal nature of throwing an exception. This paper presents a pattern language of eleven Java idioms which serve as a framework for using exceptions. The patterns help to balance the forces that the overall complexit...
متن کاملThe Impact of Context on the learning and Retention of Idioms
The purpose of the present study was to investigate the effect of context on learning idioms among 60 Iranian female advanced English learners. To this end, the researcher assigned the participants to two experimental groups and one control group: Group 1 (first experimental group, the extended-context group), Group 2 (second experimental group, the limited-context group) and Group 3 (control g...
متن کاملExploiting Abstract Syntax Trees to Locate Software Defects
Context. Software defect prediction aims to reduce the large costs involved with faults in a software system. A wide range of traditional software metrics have been evaluated as potential defect indicators. These traditional metrics are derived from the source code or from the software development process. Studies have shown that no metric clearly out performs another and identifying defect-pro...
متن کاملExplicit Programming: Improving the Design Vocabulary of Your Program [Demonstration]
Object-oriented systems are frequently built around idioms, design patterns, and other abstractions that can be captured only indirectly in source code. The loss of design information in code often impedes later development activities. Explicit programming attacks this information loss by enabling developers to introduce projectspecific design vocabulary into existing general-purpose languages....
متن کامل